package com.wlient.basic.designPattern.StateMode.pojo;

import com.wlient.basic.designPattern.StateMode.HotelState;
import com.wlient.basic.designPattern.StateMode.HotelStateEnum;

//2.1 实现各种状态类：空闲状态类
public class FreeTimeState implements HotelState {
    private HotelStateEnum state;

    @Override
    public void operate() {
        System.out.println("房间为空，预定该房间");
        state = HotelStateEnum.BOOKED_STATE;
    }
}
